/*
 * @(#)PidFeedServlet.java
 * Date 2013-10-04
 * Version 1.0
 * Author Jim Horner
 * Copyright (c)2012
 */


package us.hornerscorners.lamppost.registry.web;

import javax.inject.Inject;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;

import javax.servlet.annotation.WebServlet;

import ca.uhn.hl7v2.hoh.raw.server.HohRawServlet;

import us.hornerscorners.lamppost.registry.service.hl7.PidFeedService;


/**
 * Class description
 *
 *
 * @version        v1.0, 2013-10-04
 * @author         Jim Horner    
 */
@WebServlet(urlPatterns = { "/pidfeed" })
public class PidFeedServlet extends HohRawServlet {

    /** Field description */
    @Inject
    private PidFeedService pidFeedService;

    /**
     * Method description
     *
     *
     * @param config
     *
     * @throws ServletException
     */
    @Override
    public void init(ServletConfig config) throws ServletException {

        super.init(config);

        setMessageHandler(this.pidFeedService);
    }
}
